#!/bin/bash
for i in {1..10}; do
    echo "Test $i"
    ./jpegtest
    if [ $? -ne 0 ]; then break; fi
done